package com.sam.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

@SpringBootApplication
public class AppStart extends SpringBootServletInitializer {
	public static void main(String[] args)  {
		SpringApplication app = new SpringApplication(AppStart.class);
        //SimpleCommandLinePropertySource source = new SimpleCommandLinePropertySource(args);
        // Check if the selected profile has been set as argument.
        // if not the development profile will be added
        //app.setAdditionalProfiles(getDefaultProfile(source));
        app.run(args);
	}

	@Override
	protected final SpringApplicationBuilder configure(final SpringApplicationBuilder application) {
		return application.sources(AppStart.class);
	}
}
